import turtle
turtle.pensize(4)#画笔抬起
turtle.pencolor('red')#颜色
turtle.forward(100)#长度
turtle.right(90)#角度
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.mainloop()